# coding=utf-8

print(dir(object))  # 打印查看object的属性和方法


class Student:
    def __init__(self, name):
        self.name = name

    def __add__(self, other):
        return self.name + other.name


stu1 = Student('zhangsan')
stu2 = Student('Li si')
s = stu1 + stu2
print(s)
s = stu1.__add__(stu2)
print(s)  # 输出的结果仍然为zhangsanLi si
